import React from 'react'
import ReactDOM from 'react-dom'
// import 'antd/dist/antd.css'
// 解决：使用压缩版本样式=》Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported
import 'antd/dist/antd.min.css'
import '@/index.scss'
import App from '@/App'

import { Provider } from 'react-redux'
import store from './store'

// 全局配置国际化
import { ConfigProvider } from 'antd'
import 'moment/locale/zh-cn'
import zhCN from 'antd/lib/locale/zh_CN'

console.log(process.env, process.env.NODE_ENV)
if (process.env.NODE_ENV === 'production') {
  console.log = console.warn = () => { }
}

ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <App />
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
)

